﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using SGRapidForm.Common;

namespace SGRapidForm.Foundation.Entity
{
    [DataContract]
    public class AutoGennoEntity : EntityBase
    {
        #region Field
        private string _keyid = string.Empty;
        private string _noclass = string.Empty;
        private bool _autogenid = false;
        private bool _localid = false;
        private string _nopre = string.Empty;
        private string _splitter = string.Empty;
        private bool _yearid = false;
        private string _yearFormat = "4";
        private bool _monthid = false;
        private int? _sno = 0;
        private string _ruleno = string.Empty;
        private string _exampleno = string.Empty;
        private string _createname = string.Empty;
        private DateTime? _createdate = new DateTime(1900, 1, 1, 0, 0, 0);
        private string _modifyname = string.Empty;
        private DateTime? _modifydate = new DateTime(1900, 1, 1, 0, 0, 0);
        private string _maxno = string.Empty;
        private bool _dateid = false;
        #endregion Feild

        #region Properties
        [DataMember]
        public string Keyid
        {
            set { _keyid = value; }
            get { return _keyid; }
        }
        [DataMember]
        public string Noclass
        {
            set { _noclass = value; }
            get { return _noclass; }
        }
        [DataMember]
        public bool Autogenid
        {
            set { _autogenid = value; }
            get { return _autogenid; }
        }
        [DataMember]
        public bool Localid
        {
            set { _localid = value; }
            get { return _localid; }
        }
        [DataMember]
        public string Nopre
        {
            set { _nopre = value; }
            get { return _nopre; }
        }
        [DataMember]
        public string Splitter
        {
            set { _splitter = value; }
            get { return _splitter; }
        }
        [DataMember]
        public bool Yearid
        {
            set { _yearid = value; }
            get { return _yearid; }
        }

        [DataMember]
        public string YearFormat
        { 
            get {return _yearFormat;}
            set {_yearFormat=value;}
        }

        [DataMember]
        public bool Monthid
        {
            set { _monthid = value; }
            get { return _monthid; }
        }
        [DataMember]
        public int? Sno
        {
            set { _sno = value; }
            get { return _sno; }
        }
        [DataMember]
        public string Ruleno
        {
            set { _ruleno = value; }
            get { return _ruleno; }
        }
        [DataMember]
        public string Exampleno
        {
            set { _exampleno = value; }
            get { return _exampleno; }
        }
        [DataMember]
        public string Createname
        {
            set { _createname = value; }
            get { return _createname; }
        }
        [DataMember]
        public DateTime? Createdate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        [DataMember]
        public string Modifyname
        {
            set { _modifyname = value; }
            get { return _modifyname; }
        }
        [DataMember]
        public DateTime? Modifydate
        {
            set { _modifydate = value; }
            get { return _modifydate; }
        }
        [DataMember]
        public string Maxno
        {
            set { _maxno = value; }
            get { return _maxno; }
        }
        [DataMember]
        public bool Dateid
        {
            set { _dateid = value; }
            get { return _dateid; }
        }
        #endregion Properties

        #region Constact
        public AutoGennoEntity()
        { }
        #endregion Constact
    }
}
